execute if entity @s[type=minecraft:item,nbt={Item:{id:"minecraft:iron_nugget",Count:9b}}] run summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:iron_ingot",Count:1b}}
execute if entity @s[type=minecraft:item,nbt={Item:{id:"minecraft:gold_nugget",Count:9b}}] run summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:gold_ingot",Count:1b}}
execute if entity @s[type=minecraft:item,nbt={Item:{id:"minecraft:redstone",Count:9b}}] run summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:redstone_block",Count:1b}}
execute if entity @s[type=minecraft:item,nbt={Item:{id:"minecraft:quartz",Count:4b}}] run summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:quartz_block",Count:1b}}
execute if entity @s[type=minecraft:item,nbt={Item:{id:"minecraft:iron_ingot",Count:9b}}] run summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:iron_block",Count:1b}}
execute if entity @s[type=minecraft:item,nbt={Item:{id:"minecraft:gold_ingot",Count:9b}}] run summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:gold_block",Count:1b}}
execute if entity @s[type=minecraft:item,nbt={Item:{id:"minecraft:diamond",Count:9b}}] run summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:diamond_block",Count:1b}}
execute if entity @s[type=minecraft:item,nbt={Item:{id:"minecraft:emerald",Count:9b}}] run summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:emerald_block",Count:1b}}
execute if entity @s[type=minecraft:item,nbt={Item:{id:"minecraft:lapis_lazuli",Count:9b}}] run summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:lapis_block",Count:1b}}
execute if entity @s[type=minecraft:item,nbt={Item:{id:"minecraft:netherite_ingot",Count:9b}}] run summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:netherite_block",Count:1b}}
execute if entity @s[type=minecraft:item,nbt={Item:{id:"minecraft:coal",Count:9b}}] run summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:coal_block",Count:1b}}
execute if entity @s[type=minecraft:item,nbt={Item:{id:"minecraft:copper_ingot",Count:9b}}] run summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:copper_block",Count:1b}}
execute if entity @s[type=minecraft:item,nbt={Item:{id:"minecraft:glowstone_dust",Count:4b}}] run summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:glowstone",Count:1b}}
execute if entity @s[type=minecraft:item,nbt={Item:{id:"minecraft:nether_wart",Count:9b}}] run summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:nether_wart_block",Count:1b}}
execute if entity @s[type=minecraft:item,nbt={Item:{id:"minecraft:raw_iron",Count:9b}}] run summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:raw_iron_block",Count:1b}}
execute if entity @s[type=minecraft:item,nbt={Item:{id:"minecraft:raw_gold",Count:9b}}] run summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:raw_gold_block",Count:1b}}
execute if entity @s[type=minecraft:item,nbt={Item:{id:"minecraft:raw_copper",Count:9b}}] run summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:raw_copper_block",Count:1b}}
execute if entity @s[type=minecraft:item,nbt={Item:{id:"minecraft:slime_ball",Count:9b}}] run summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:slime_block",Count:1b}}
execute if entity @s[type=minecraft:item,nbt={Item:{id:"minecraft:melon_slice",Count:9b}}] run summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:melon",Count:1b}}
execute if entity @s[type=minecraft:item,nbt={Item:{id:"minecraft:wheat",Count:9b}}] run summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:hay_block",Count:1b}}
execute if entity @s[type=minecraft:item,nbt={Item:{id:"minecraft:bone_meal",Count:9b}}] run summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:bone_block",Count:1b}}
execute if entity @s[type=minecraft:item,nbt={Item:{id:"minecraft:bone",Count:3b}}] run summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:bone_block",Count:1b}}
execute if entity @s[type=minecraft:item,nbt={Item:{id:"minecraft:snow",Count:4b}}] run summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:snow_block",Count:1b}}
execute if entity @s[type=minecraft:item,nbt={Item:{id:"minecraft:clay_ball",Count:4b}}] run summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:clay",Count:1b}}
execute if entity @s[type=minecraft:item,nbt={Item:{id:"minecraft:brick",Count:4b}}] run summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:bricks",Count:1b}}
execute if entity @s[type=minecraft:item,nbt={Item:{id:"minecraft:nether_brick",Count:4b}}] run summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:nether_bricks",Count:1b}}
execute if entity @s[type=minecraft:item,nbt={Item:{id:"minecraft:sand",Count:4b}}] run summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:sandstone",Count:1b}}
execute if entity @s[type=minecraft:item,nbt={Item:{id:"minecraft:red_sand",Count:4b}}] run summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:red_sandstone",Count:1b}}
execute if entity @s[type=minecraft:item,nbt={Item:{id:"minecraft:prismarine_shard",Count:4b}}] run summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:prismarine",Count:1b}}
execute if entity @s[type=minecraft:item,nbt={Item:{id:"minecraft:prismarine_shard",Count:9b}}] run summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:prismarine_bricks",Count:1b}}
execute if entity @s[type=minecraft:item,nbt={Item:{id:"minecraft:pointed_dripstone",Count:4b}}] run summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:dripstone_block",Count:1b}}
execute if entity @s[type=minecraft:item,nbt={Item:{id:"minecraft:amethyst_shard",Count:4b}}] run summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:amethyst_block",Count:1b}}
execute if entity @s[type=minecraft:item,nbt={Item:{id:"minecraft:magma_cream",Count:4b}}] run summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:magma_block",Count:1b}}
execute if entity @s[type=minecraft:item,nbt={Item:{id:"minecraft:honeycomb",Count:4b}}] run summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:honeycomb_block",Count:1b}}
execute if entity @s[type=minecraft:item,nbt={Item:{id:"minecraft:honey_bottle",Count:4b}}] run summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:glass_bottle",Count:4b}}
execute if entity @s[type=minecraft:item,nbt={Item:{id:"minecraft:honey_bottle",Count:4b}}] run summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:honey_block",Count:1b}}
execute if entity @s[type=minecraft:item,nbt={Item:{id:"minecraft:string",Count:4b}}] run summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:white_wool",Count:1b}}
execute if entity @s[type=minecraft:item,nbt={Item:{id:"minecraft:dried_kelp",Count:4b}}] run summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:dried_kelp_block",Count:1b}}
execute if entity @s[type=minecraft:item,nbt={Item:{tag:{id:"anc:fruit_of_the_sea"},Count:1b}}] run loot spawn ~ ~ ~ loot anc:kernel_of_the_sea
kill @s
